#!/bin/bash
ID=`ps -ef | grep my-love.jar | grep -v grep | awk '{print $2}'`
if [ "$ID" = "" ];
then
  echo "task is empty"
else
  kill -9 $ID
  echo "task id is $ID killed"
fi
